﻿@{
    Layout = "~/Views/Shared/_LayoutWiki.cshtml";
}

<h2>收货地址相关内容</h2>

<div class="item">
    <h3>根据会员编号获取收货地址</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/address/query</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>data</td>
            <td>json</td>
            <td>明细列表</td>
        </tr>
        <tr>
            <td>data[x].ID</td>
            <td>int</td>
            <td>地址编号</td>
        </tr>
        <tr>
            <td>data[x].MemberID</td>
            <td>int</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>data[x].Name</td>
            <td>string</td>
            <td>姓名</td>
        </tr>
        <tr>
            <td>data[x].Mobile</td>
            <td>string</td>
            <td>手机号码</td>
        </tr>
        <tr>
            <td>data[x].ProvinceID</td>
            <td>int</td>
            <td>省份编号</td>
        </tr>
        <tr>
            <td>data[x].ProvinceName</td>
            <td>string</td>
            <td>省份名称</td>
        </tr>
        <tr>
            <td>data[x].CityID</td>
            <td>int</td>
            <td>城市编号</td>
        </tr>
        <tr>
            <td>data[x].CityName</td>
            <td>string</td>
            <td>城市名称</td>
        </tr>
        <tr>
            <td>data[x].CountyID</td>
            <td>int</td>
            <td>区域编号</td>
        </tr>
        <tr>
            <td>data[x].CountyName</td>
            <td>string</td>
            <td>区域名称</td>
        </tr>
        <tr>
            <td>data[x].Detail</td>
            <td>string</td>
            <td>详细地址</td>
        </tr>
        <tr>
            <td>data[x].IsDefault</td>
            <td>bool</td>
            <td>是否默认地址</td>
        </tr>
        <tr>
            <td>data[x].IncludeDate</td>
            <td>datetime</td>
            <td>更新时间</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>获取会员默认收获地址</h3>

    <p>请求说明</p>
    <p>http请求方式: get</p>
    <p>http://hub.engnice.com/scrm/address/getdefault</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
    </table>

    <p>返回说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>类型</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>ID</td>
            <td>int</td>
            <td>地址编号</td>
        </tr>
        <tr>
            <td>MemberID</td>
            <td>int</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>Name</td>
            <td>string</td>
            <td>姓名</td>
        </tr>
        <tr>
            <td>Mobile</td>
            <td>string</td>
            <td>手机号码</td>
        </tr>
        <tr>
            <td>ProvinceID</td>
            <td>int</td>
            <td>省份编号</td>
        </tr>
        <tr>
            <td>ProvinceName</td>
            <td>string</td>
            <td>省份名称</td>
        </tr>
        <tr>
            <td>CityID</td>
            <td>int</td>
            <td>城市编号</td>
        </tr>
        <tr>
            <td>CityName</td>
            <td>string</td>
            <td>城市名称</td>
        </tr>
        <tr>
            <td>CountyID</td>
            <td>int</td>
            <td>区域编号</td>
        </tr>
        <tr>
            <td>CountyName</td>
            <td>string</td>
            <td>区域名称</td>
        </tr>
        <tr>
            <td>Detail</td>
            <td>string</td>
            <td>详细地址</td>
        </tr>
        <tr>
            <td>IsDefault</td>
            <td>bool</td>
            <td>是否默认地址</td>
        </tr>
        <tr>
            <td>IncludeDate</td>
            <td>datetime</td>
            <td>更新时间</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>设置默认收货地址</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/address/setdefault</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>id</td>
            <td>是</td>
            <td>地址编号</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>添加收货地址</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/address/insert</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>name</td>
            <td>是</td>
            <td>姓名</td>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>手机号码</td>
        </tr>
        <tr>
            <td>provinceid</td>
            <td>是</td>
            <td>省份编号</td>
        </tr>
        <tr>
            <td>provincename</td>
            <td>是</td>
            <td>省份名称</td>
        </tr>
        <tr>
            <td>cityid</td>
            <td>是</td>
            <td>城市编号</td>
        </tr>
        <tr>
            <td>cityname</td>
            <td>是</td>
            <td>城市名称</td>
        </tr>
        <tr>
            <td>countyid</td>
            <td>是</td>
            <td>区域编号</td>
        </tr>
        <tr>
            <td>countyname</td>
            <td>是</td>
            <td>区域名称</td>
        </tr>
        <tr>
            <td>detail</td>
            <td>是</td>
            <td>详细地址</td>
        </tr>
        <tr>
            <td>isdefault</td>
            <td>是</td>
            <td>是否默认地址</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>修改收货地址</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/address/update</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>id</td>
            <td>是</td>
            <td>地址编号</td>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>name</td>
            <td>是</td>
            <td>姓名</td>
        </tr>
        <tr>
            <td>mobile</td>
            <td>是</td>
            <td>手机号码</td>
        </tr>
        <tr>
            <td>provinceid</td>
            <td>是</td>
            <td>省份编号</td>
        </tr>
        <tr>
            <td>provincename</td>
            <td>是</td>
            <td>省份名称</td>
        </tr>
        <tr>
            <td>cityid</td>
            <td>是</td>
            <td>城市编号</td>
        </tr>
        <tr>
            <td>cityname</td>
            <td>是</td>
            <td>城市名称</td>
        </tr>
        <tr>
            <td>countyid</td>
            <td>是</td>
            <td>区域编号</td>
        </tr>
        <tr>
            <td>countyname</td>
            <td>是</td>
            <td>区域名称</td>
        </tr>
        <tr>
            <td>detail</td>
            <td>是</td>
            <td>详细地址</td>
        </tr>
        <tr>
            <td>isdefault</td>
            <td>是</td>
            <td>是否默认地址</td>
        </tr>
    </table>
</div>

<div class="item">
    <h3>删除收货地址</h3>

    <p>请求说明</p>
    <p>http请求方式: post/form</p>
    <p>http://hub.engnice.com/scrm/address/delete</p>

    <p>参数说明</p>
    <table>
        <tr>
            <th>参数</th>
            <th>是否必须</th>
            <th>说明</th>
        </tr>
        <tr>
            <td>memberid</td>
            <td>是</td>
            <td>会员编号</td>
        </tr>
        <tr>
            <td>id</td>
            <td>是</td>
            <td>地址编号</td>
        </tr>
        <tr>
            <td>isDefault</td>
            <td>是</td>
            <td>是否默认地址</td>
        </tr>
    </table>
</div>